<!DOCTYPE html PUBLIC
          "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <script src="jscal/js/jscal2.js"></script>
    <script src="jscal/js/lang/en.js"></script>
    <link rel="stylesheet" type="text/css" href="jscal/css/jscal2.css" />
    <link rel="stylesheet" type="text/css" href="jscal/css/border-radius.css" />
    <title> KMonitor:: Hadoop Mapreduce Job report </title>
    <meta http-equiv="refresh" content="300">
    <style>
    a.tooltip{
    /* for postioning the tool-tip box relative to the link */
    position:relative;
    /* no underline needed */
    text-decoration: none;
    }

    a.tooltip span{
    /* tool-tip text will not be visible initially */
    display: none;
    }

    a.tooltip:hover span{
    /* make tool-tip text visible */
    display:block;
    /* for postioning */
    position:absolute;
    top:20px; left:20px;
    padding: 5px;

    /* width of the tool-tip box
    if text is longer, it will be
    made into two lines */
    width:400px;

    /* style the box to look like a tool-tip box */
    border:1px solid #000;
    background-color:#FFFFAA;
    color:#000;
    }
    </style>
  </head>
  <body>
    <h1> Hadoop MapReduce Jobs Overview </h1>
    <div>
    <form method="GET" name="mrjob_form">
<!-- START BLOCK : timerange -->
    From <input size="20" id="cs" name="cs" {cs_value}/><button id="cs_btn" type="button">...</button>
    To   <input size="20" id="ce" name="ce" {ce_value}/><button id="ce_btn" type="button">...</button>
<!-- END BLOCK : timerange -->

    <script type="text/javascript">//<![CDATA[
      var cal = Calendar.setup({
          onSelect: function(cal) { cal.hide() },
          showTime: true,
          minuteStep: 1
      });
      cal.manageFields("cs_btn", "cs", "%b %d %Y %H:%M");
      cal.manageFields("ce_btn", "ce", "%b %d %Y %H:%M");
    //]]></script>
    MapReduce JobId:
    <select name="j" onChange="mrjob_from.submit();">
<!-- START BLOCK : mrjoblist -->
    <option value="{value}" {select}> {value}
<!-- END BLOCK : mrjoblist -->
    </select>
    Name of Metric:
    <select name="m" onChange="mrjob_from.submit();">
<!-- START BLOCK : metriclist -->
    <option value="{value}" {select}> {name}
<!-- END BLOCK : metriclist -->
    </select>
    <input type="submit" value="Submit" />

    <TABLE>
    <TR>
    <TD ALIGN="CENTER">
    <h2> Cluster View </h2>
    </TD>
    </TR>
    <TR>
<!-- START BLOCK : overview -->
    <TD ALIGN="CENTER" VALIGN=top>
    <a href="{hostlink}" class="tooltip">
    <span> {overview_tip} </span>
    <IMG BORDER=0 SRC="./graph.php?{imgargs}">
    </a>
    </TD>
    {br}
    <!-- END BLOCK : overview -->
    </TR>
    <TR><TD><BR></TD></TR>
    <TR>
    <TD ALIGN="CENTER" VALIGN=top>
    <h2> Node View
<!-- START BLOCK : nodeview_title -->
    {nodeview_metric}
<!-- END BLOCK : nodeview_title -->
    </h2>
    </TD>
    </TR>
    <TR>
<!-- START BLOCK : nodeview -->
    {metric_image}{br}
<!-- END BLOCK : nodeview -->
    </TR>
    </TABLE>

    </form>
  </body>
</html>
